/**
 * 
 */
package design_pattern.observer2;

/**
 * @author linzq
 *
 */
public class ConcreteSubject extends Subject {

  private int state = 0;

  public void change(int state) {
    this.state = state;
    // 通知所有监听器对象
    super.notifyObservers();
  }

}
